package application.view.viewComponent 
{
	/**
	 * ...
	 * @author Ning
	 */
	import caurina.transitions.Tweener;
	public class TranView extends LayoutView
	{
		
		public function TranView() 
		{
			
		}
		public function show():void
		{
			layout();
			var y:Number = this.y;
			if(layoutData.targetRect)
			    this.y = -layoutData.targetRect.height;
			else 
			    this.y = -this.height;
			Tweener.addTween(this, { time:.5, delay:Math.random() * .2, y:y } );
		}
		public function leave():void
		{
			Tweener.addTween(this, { time:.5, delay:Math.random() * .2, y:AppGlobal.STAGE.stageHeight } );
		}
	}
}